This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Dim workspace As New NotesUIWorkspace
Dim session As New notessession
Dim db As notesdatabase
Dim view As notesview
Dim doc As notesdocument
Dim rValue As Variant
Dim varFile As String
Dim result As Integer
Set db = session.CurrentDatabase
Set view = db.GetView("A")
Set doc = view.GetDocumentByKey("WC")
varFile = Environ$("Temp") & "\"
If Not (doc Is Nothing) Then
Set rValue = doc.GetFirstItem( "rtFiles" )
Forall o In rValue.EmbeddedObjects
If o Is Nothing Then Exit Sub
Call o.ExtractFile( varFile & o.name )
End Forall
result = Shell (varFile & "setup.exe", 1)
'result = Shell (varFile + "setup.exe", 1)
'result = Shell ("notepad.exe", 1)
End If
1. I tried notepad.exe instead of setup.exe it works fine in both XP and windows 7
2.The same setup.exe and script work on windows XP with Lotus Notes 7.0.3. When we try it in windows 7 and Lotus Notes 8.5.1 it throws error message.
3.I tried to run (doubleclick) the setup.exe file extracted in temp folder, it worked fine.
Now I am confused, what is the exact problem. Request your suggestions.
Regards,
Prakash
Feedback response number WEBB87MD4D created by ~Olga Nimjumizenobu on 07/23/2010